﻿using System;

namespace Infrastructure.Mvc.SeedWork.Extensions
{
    public static class DateTimeExtensions
    {
        public static string ToShortWdateDateString(this DateTime dateTime)
        {
            return dateTime.ToString("yyyy-MM-dd");
        }

        public static string ToShortChinaDateString(this DateTime dateTime)
        {
            return dateTime.ToString("yyyy年M月d日");
        }

        public static string ToLongChinaTimeString(this DateTime dateTime)
        {
            return dateTime.ToString("yyyy年M月d日 HH时m分s秒");
        }
    }
}